//
//  BaseViewController.m
//  体育
//
//  Created by  on 2022/10/24.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
-(void)setupNaviBarColor:(UIColor *)bgColor titleColor:(UIColor *)titleColor{
    [super setupNaviBarColor:bgColor titleColor:titleColor];
    CGRect bounds = CGRectMake(0, 0, SCREEN_WIDTH, NavHeight);
    UIBezierPath * path = [UIBezierPath bezierPathWithRoundedRect:bounds byRoundingCorners:UIRectCornerBottomLeft | UIRectCornerBottomRight cornerRadii:CGSizeMake(12, 12)];
    CAShapeLayer *layer = [CAShapeLayer layer];
    layer.frame = bounds;
    layer.path = path.CGPath;
    layer.fillColor = Hex(@"#2756CA").CGColor;
    self.navigationController.navigationBar.backgroundColor = Hex(@"#ECEFF6");
    UIImageView *img = self.navigationController.navigationBar.subviews[0].subviews[0];
    img.layer.mask=layer;
}

@end
